/*
 * @Author: spark
 * @Date: 2021-06-21 14:08:03
 * @LastEditTime: 2021-06-28 11:19:24
 * @LastEditors: spark
 * @Description: 一个持续与bug做抗争的程序员
 * email: spark.xiaoyu@qq.com`
 */

import { Store as VuexStore, DispatchOptions, CommitOptions, Module } from 'vuex';
import { mutations, Mutations } from './mutations'
import { actions, Actions } from './actions'
import { state, UserState } from './state';
import { RootState } from '@/store';

export type UserStore<S = UserState> = VuexStore<S>


export const store: Module<UserState, RootState> = {
    state,
    mutations,
    actions,
    namespaced: true
}